package obs.service.impl;

import java.sql.SQLException;
import java.util.List;

import obs.bean.User;
import obs.dao.UserDao;
import obs.service.GetUserSerivec;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Transactional
public class GetUserSerivecImpl implements GetUserSerivec {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> get(String uid) throws SQLException {
        return userDao.get(uid);
    }
}
